package com.he.abstractfactorymodel.factory.concretepeople;

import com.he.abstractfactorymodel.factory.abstractfactory.Peoplefactory;
import com.he.abstractfactorymodel.product.People;
import com.he.abstractfactorymodel.product.concretepeople.BlackMan;
import com.he.abstractfactorymodel.product.concretepeople.WhiteMan;
import com.he.abstractfactorymodel.product.concretepeople.YellowMan;

public class Manfactory extends Peoplefactory {
    @Override
    public People createYellowPeople() {
        return createPoeple(YellowMan.class);
    }

    @Override
    public People createWhitePeople() {
        return createPoeple(WhiteMan.class);
    }

    @Override
    public People createBlackPeople() {
        return createPoeple(BlackMan.class);
    }

}
